package net.xdclass.vo;


import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.math.BigDecimal;

/**
 * @Classname ProductOrderItemVo
 * @Description TODO
 * @Date 2022/8/17 18:01
 * @Created by sunhao
 */
@Data
public class ProductOrderItemVo {

  private Long id;
  /**
   * 订单号
   */
  @JsonProperty(value = "product_order_id")
  private Long productOrderId;

  @JsonProperty(value = "out_trade_no")
  private String outTradeNo;

  /**
   * 产品id
   */
  @JsonProperty(value = "product_id")
  private Long productId;

  /**
   * 商品名称
   */
  @JsonProperty(value = "product_name")
  private String productName;

  /**
   * 商品图片
   */
  @JsonProperty(value = "product_img")
  private String productImg;

  /**
   * 购买数量
   */
  @JsonProperty(value = "buy_num")
  private Integer buyNum;

  /**
   * 购物项商品总价格
   */
  @JsonProperty(value = "total_amount")
  private BigDecimal totalAmount;

  /**
   * 购物项商品单价
   */
  private BigDecimal amount;
}
